package edu.lnu.ums.dal.impl;

import javax.ejb.Stateless;

import edu.lnu.ums.dal.ISexDAO;
import edu.lnu.ums.entities.dictionaries.Sex;

@Stateless
public class SexDAO extends GenericDictionaryDAO<Sex> implements ISexDAO{

    public SexDAO() {
        super(Sex.class);
    }

    @Override
    public String getByNameQuery() {
        return "from Sex where name like :name";
    }

    @Override
    public String getOrderByQuery() {
        return "order by name";
    }
}
